﻿using System.Runtime.Serialization;

namespace Crocodoc
{
    /// <summary>
    /// Represents a user in your application's userbase.
    /// </summary>
    public class CrocodocUser
    {
        /// <summary>
        /// Gets or sets the unique non-negative signed 32-bit integer for your user in your application's userbase.
        /// </summary>
        public uint ID
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the user name that will be shown to the viewer to attribute annotations and comments to their author.
        /// </summary>
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// Gets the ID and Name joined with a comma.
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0},{1}", ID, Name);
        }
    }
}
